Optimal. Leaf size=57 \[ \frac {1}{4 x^2}-\frac {\cosh \left (2 \left (a+b x^2\right )\right )}{4 x^2}+\frac {1}{2} b \text {Chi}\left (2 b x^2\right ) \sinh (2 a)+\frac {1}{2} b \cosh (2 a) \text {Shi}\left (2 b x^2\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.09, antiderivative size = 57, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 6, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.429, Rules used = {5448, 5429,
3378, 3384, 3379, 3382} \begin {gather*} \frac {1}{2} b \sinh (2 a) \text {Chi}\left (2 b x^2\right )+\frac {1}{2} b \cosh (2 a) \text {Shi}\left (2 b x^2\right )-\frac {\cosh \left (2 \left (a+b x^2\right )\right )}{4 x^2}+\frac {1}{4 x^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3378
Rule 3379
Rule 3382
Rule 3384
Rule 5429
Rule 5448
Rubi steps
\begin {align*} \int \frac {\sinh ^2\left (a+b x^2\right )}{x^3} \, dx &=\int \left (-\frac {1}{2 x^3}+\frac {\cosh \left (2 a+2 b x^2\right )}{2 x^3}\right ) \, dx\\ &=\frac {1}{4 x^2}+\frac {1}{2} \int \frac {\cosh \left (2 a+2 b x^2\right )}{x^3} \, dx\\ &=\frac {1}{4 x^2}+\frac {1}{4} \text {Subst}\left (\int \frac {\cosh (2 a+2 b x)}{x^2} \, dx,x,x^2\right )\\ &=\frac {1}{4 x^2}-\frac {\cosh \left (2 \left (a+b x^2\right )\right )}{4 x^2}+\frac {1}{2} b \text {Subst}\left (\int \frac {\sinh (2 a+2 b x)}{x} \, dx,x,x^2\right )\\ &=\frac {1}{4 x^2}-\frac {\cosh \left (2 \left (a+b x^2\right )\right )}{4 x^2}+\frac {1}{2} (b \cosh (2 a)) \text {Subst}\left (\int \frac {\sinh (2 b x)}{x} \, dx,x,x^2\right )+\frac {1}{2} (b \sinh (2 a)) \text {Subst}\left (\int \frac {\cosh (2 b x)}{x} \, dx,x,x^2\right )\\ &=\frac {1}{4 x^2}-\frac {\cosh \left (2 \left (a+b x^2\right )\right )}{4 x^2}+\frac {1}{2} b \text {Chi}\left (2 b x^2\right ) \sinh (2 a)+\frac {1}{2} b \cosh (2 a) \text {Shi}\left (2 b x^2\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.07, size = 46, normalized size = 0.81 \begin {gather*} \frac {1}{2} \left (b \text {Chi}\left (2 b x^2\right ) \sinh (2 a)-\frac {\sinh ^2\left (a+b x^2\right )}{x^2}+b \cosh (2 a) \text {Shi}\left (2 b x^2\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.78, size = 69, normalized size = 1.21
method | result | size |
risch | \(\frac {1}{4 x^{2}}-\frac {{\mathrm e}^{-2 a} {\mathrm e}^{-2 x^{2} b}}{8 x^{2}}+\frac {{\mathrm e}^{-2 a} b \expIntegral \left (1, 2 x^{2} b \right )}{4}-\frac {{\mathrm e}^{2 a} {\mathrm e}^{2 x^{2} b}}{8 x^{2}}-\frac {{\mathrm e}^{2 a} b \expIntegral \left (1, -2 x^{2} b \right )}{4}\) | \(69\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.32, size = 36, normalized size = 0.63 \begin {gather*} -\frac {1}{4} \, b e^{\left (-2 \, a\right )} \Gamma \left (-1, 2 \, b x^{2}\right ) + \frac {1}{4} \, b e^{\left (2 \, a\right )} \Gamma \left (-1, -2 \, b x^{2}\right ) + \frac {1}{4 \, x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.36, size = 90, normalized size = 1.58 \begin {gather*} -\frac {\cosh \left (b x^{2} + a\right )^{2} - {\left (b x^{2} {\rm Ei}\left (2 \, b x^{2}\right ) - b x^{2} {\rm Ei}\left (-2 \, b x^{2}\right )\right )} \cosh \left (2 \, a\right ) + \sinh \left (b x^{2} + a\right )^{2} - {\left (b x^{2} {\rm Ei}\left (2 \, b x^{2}\right ) + b x^{2} {\rm Ei}\left (-2 \, b x^{2}\right )\right )} \sinh \left (2 \, a\right ) - 1}{4 \, x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sinh ^{2}{\left (a + b x^{2} \right )}}{x^{3}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 126 vs.
\(2 (50) = 100\).
time = 0.44, size = 126, normalized size = 2.21 \begin {gather*} \frac {2 \, {\left (b x^{2} + a\right )} b^{2} {\rm Ei}\left (2 \, b x^{2}\right ) e^{\left (2 \, a\right )} - 2 \, a b^{2} {\rm Ei}\left (2 \, b x^{2}\right ) e^{\left (2 \, a\right )} - 2 \, {\left (b x^{2} + a\right )} b^{2} {\rm Ei}\left (-2 \, b x^{2}\right ) e^{\left (-2 \, a\right )} + 2 \, a b^{2} {\rm Ei}\left (-2 \, b x^{2}\right ) e^{\left (-2 \, a\right )} - b^{2} e^{\left (2 \, b x^{2} + 2 \, a\right )} - b^{2} e^{\left (-2 \, b x^{2} - 2 \, a\right )} + 2 \, b^{2}}{8 \, b^{2} x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int \frac {{\mathrm {sinh}\left (b\,x^2+a\right )}^2}{x^3} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________